package rabbitmqConsummer.consummers;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectConsummer {
    @RabbitListener(queues = "direct_queue1")
    public void directQueue1(String message) {
        System.out.println("Direct Queue 1: " + message);
    }

    @RabbitListener(queues = "direct_queue2")
    public void directQueue2(String message) {
        System.out.println("Direct Queue 2: " + message);
    }

    @RabbitListener(queues = "direct_queue3")
    public void directQueue3(String message) {
        System.out.println("Direct Queue 3: " + message);
    }
}
